﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demonstartor
{
    class FlightValues: Dictionary<InvolvedParameter, DateTimeValuesList>
    {
        public FlightValues()
            :base()
        {

        }

        public void Split(DateTime DateTime)
        {
            int C = this.Count;
            for (int i = 0; i < C; i++)
            {
                var Cur = this.ElementAt(i);
                Cur.Value.Split(DateTime);
            }
        }

        public void Add(InvolvedParameter Parameter, DateTimeValues Points)
        {
            if (ContainsKey(Parameter))
                this[Parameter].Add(Points);
            else
            {
                this.Add(Parameter, new DateTimeValuesList());
                this[Parameter].Add(Points);
            }
        }
    }
}
